package basic.io;

import java.io.*;
/*
 *   �������л��뷴���л�
 *
 * */

public class SerializableTest {
 public static void main(String[] args) throws IOException, ClassNotFoundException {
	ObjectOutputStream objectOutputStream = new ObjectOutputStream(new FileOutputStream("object.txt"));
	ObjectInputStream objectInputStream = new ObjectInputStream(new FileInputStream("object.txt"));
	Person person = new Person("����",21);
	objectOutputStream.writeObject(person);
	objectOutputStream.close();
	Object object = objectInputStream.readObject();
	objectInputStream.close();
	System.out.println("object��"+object);
  }
}
